#!/usr/bin/env node
/*
 * @Date: 2021-11-15 16:29:56
 * @Version: 1.0.0
 * @Author: chenhengling
 * @Description: 入口文件
 * @LastEditTime: 2022-01-11 16:36:11
 * @LastEditors: chenhengling
 */
const { program } = require('commander');
const { version } = require('../package.json');

program
  .name('tp')
  .usage('<command> [options]')
  .version(version, '-v, --version')
  .helpOption('-h, --help', 'output usage information')
  .addHelpCommand(false)
  .addHelpText('after', '\n  Run tp <command> --help for detailed usage of given command.');

program.command('init', 'generate a project from a remote template', {
  executableFile: 'cmds/init',
});
// program.command('create <app-name>', 'create a new project powered by tp-cli', { executableFile: 'cmds/create' });

program.parse(process.argv);
